import request from '@/utils/request'


export function adduser(data) {
  return request({
    url: '/picture/acpictures/insertlist',
    method: 'post',
    data: data
  })
}

// 查询相册管理列表
export function listAcpictures(query) {
  return request({
    url: '/picture/acpictures/list',
    method: 'get',
    params: query
  })
}

export function userlist(query) {
  return request({
    url: '/picture/acpictures/userlist?id='+query.id+"&status="+query.status+"&pageSize=1000&pageNum=1",
    method: 'get',
  })
}

// 查询相册管理详细
export function getAcpictures(id) {
  return request({
    url: '/picture/acpictures/' + id,
    method: 'get'
  })
}

// 新增相册管理
export function addAcpictures(data) {
  return request({
    url: '/picture/acpictures',
    method: 'post',
    data: data
  })
}

// 修改相册管理
export function updateAcpictures(data) {
  return request({
    url: '/picture/acpictures',
    method: 'put',
    data: data
  })
}

// 删除相册管理
export function delAcpictures(id) {
  return request({
    url: '/picture/acpictures/' + id,
    method: 'delete'
  })
}
